<?php echo $this->fetch('header.html'); ?>
<ul class="nav nav-tabs">
<li <?php if (get ( 'op' ) == ''): ?>class="active"<?php endif; ?>><a href="<?php echo $this->_var['appadmin']; ?>?m=admin&a=permission"><?php echo $this->_var['lang']['permission_admin']; ?></a> </li>
<li <?php if (get ( 'op' ) == 'add'): ?>class="active"<?php endif; ?>><a href="<?php echo $this->_var['appadmin']; ?>?m=admin&a=permission&op=add"><?php echo $this->_var['lang']['permission_add']; ?></a></li>
<li <?php if (get ( 'op' ) == 'saveonfig'): ?>class="active"<?php endif; ?>><a href="<?php echo $this->_var['appadmin']; ?>?m=admin&a=permission&op=saveconfig"><?php echo $this->_var['lang']['permission_write']; ?></a></li>
</ul>

<div class="rbox">

<table  class="table table-bordered">
  <tr>
    <td width="4%" align="center">ID</td>
    <td width="16%" align="center"><?php echo $this->_var['lang']['name']; ?></td>
    <td width="10%" align="center">m</td>
  
    <td width="40%" align="center"><?php echo $this->_var['lang']['permission']; ?></td>
    <td width="20%" align="center"><?php echo $this->_var['lang']['operation']; ?></td>
  </tr>
  <?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
  <tr>
    <td align="center"><?php echo $this->_var['c']['id']; ?></td>
    <td align="center"><?php echo $this->_var['c']['title']; ?></td>
    <td align="center"><?php echo $this->_var['c']['m']; ?></td>
     
    <td align="center"><?php echo $this->_var['c']['access']; ?></td>
    <td align="center"> <a href="<?php echo $this->_var['appadmin']; ?>?m=admin&a=permission&op=add&id=<?php echo $this->_var['c']['id']; ?>"><?php echo $this->_var['lang']['edit']; ?></a> <a href="javascript:;" class="del" url="<?php echo $this->_var['appadmin']; ?>?m=admin&a=permission&op=delete&id=<?php echo $this->_var['c']['id']; ?>"><?php echo $this->_var['lang']['delete']; ?></a></td>
  </tr>
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  
</table>
 
</div>

<?php echo $this->fetch('footer.html'); ?>